package test01;

import Impl.AdminDaoImpl;
import Impl.BoardDaoImpl;
import Impl.UsNewsDaoImpl;
import dao.IAdminDao;
import dao.IBoardDao;
import dao.IUsNewsDao;
import entity.AdminMan;
import org.junit.Test;

public class Demo01 {
    IAdminDao iad=new AdminDaoImpl();
    IBoardDao ibd=new BoardDaoImpl();
    IUsNewsDao iud=new UsNewsDaoImpl();

@Test
    public void test01(){
    AdminMan a =iad.login("admin","admin");
        System.out.println(a.getAdminName());

    }
    @Test
    public void test02(){
    ibd.updateBoard("省内",1);

    }
    @Test
    public void test03(){
        System.out.println(iud.showNews(3,2));

    }

}
